import sys
import os

# 添加项目根目录到Python路径
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, project_root)

# 确保依赖已安装
try:
    import fastapi
    import pydantic
    import pandas
    import numpy
except ImportError as e:
    print(f"Missing required dependencies: {e}")
    print("Please install dependencies with: pip install -r requirements.txt")